# coding=utf-8
# -*- coding: UTF-8 -*-
#
# This file is part of the kernelstudio package.
#
# (c) 2014-2025 zlin <admin@kernelstudio.com>
#
# For the full copyright and license information, please view the LICENSE file
# that was distributed with this source code.
from typing import Any

from api.labeler import ApiLabelerInitializer
from api.open import ApiOpenInitializer
from api.services import ApiServicesInitializer
from ksai.context import ApplicationInitializer, Application, CompositeInitializer


class ApiInitializer(ApplicationInitializer):

    def initialize(self, app: Application) -> Any:
        initializer = CompositeInitializer([
            ApiLabelerInitializer(),
            ApiServicesInitializer(),
            ApiOpenInitializer(),
        ])
        initializer.initialize(app)
